package com.xkdx.guangguang.fragment.home;

import java.util.ArrayList;
import java.util.List;

import org.json.JSONException;
import org.json.JSONObject;

import com.xkdx.guangguang.module.network.AbsAction;

/**
 * Created by z.yuan on 2014/11/11.
 */
public class RecommendAction extends AbsAction {
	private String mCityId = "";

    public RecommendAction(String cityId){
        mCityId = cityId;
    }

    @Override
    public void constructRequest() {
        JSONObject jsonObject = new JSONObject();
        try {
            jsonObject.put("PageIndex",1);
            jsonObject.put("PageSize",100);
            jsonObject.put("RefreshTime","2023-1-1");
            jsonObject.put("City",mCityId);
        } catch (JSONException e) {
            e.printStackTrace();
        }

        String jsonStr = jsonObject.toString();
        Parameter parameter = new Parameter("informationInterface",
                "recommendation", jsonStr);
        List<Parameter> list = new ArrayList<Parameter>();
        list.add(parameter);
        requestData = constructMod(list);
    }
}
